from PIL     import Image
from blake3 import blake3

# img_path = "desktop.jpeg"
img_path = "iterm2.jpeg"
image    = Image.open(img_path).tobytes()

haser    = blake3()
hashed   = haser.update(image).hexdigest()

# print(len(hashed))  # 64
print(hashed)